package com.hqyj.mapper;

import com.hqyj.pojo.Payment;
import com.hqyj.pojo.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface PaymentMapper {
    //全查
    List<User> selectAll(String username);
    //添加
    int insertPayment(Payment payment);
    //查询
    User selectPaymentId(User user);
    //更改
    int updatePayment(Payment payment);
    //删除
    int deletePayment(int paymentid);
    //payment查询
    Payment selectPaymentByPaymentId(int id);
    //order_payment add
    int insertOrderPayment(@Param("orderid") int orderid, @Param("paymentid") int paymentid);

}

